<?php
//回复页面
session_start();
header("Content-type:text/html;charset=utf-8");
require('config.inc.php');
if($_SESSION['login'] != 'admin'){
	echo "<script>alert('管理员没登录，请重新登录');location.href='login.php';</script>";
}else{
	if(isset($_GET['id']) && $_SESSION['login'] == 'admin'){
		$id = $_GET['id'];
		$sql = "DELETE FROM `info` WHERE `id`=$id";
		if(mysql_query($sql)){
			echo "<script>location.href='index.php';alert(删除成功);</script>";
		}
	}
}




?>